package com.liukai.personalbills.dao;

import com.liukai.personalbills.entity.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * 持久层
 */
@Mapper
public interface UserDao {

    /**
     * 按照username查询User
     * @param username
     * @return
     */
    User findByUserName(String username);

    /**
     * 修改User
     * @param user
     * @return
     */
    int update(User user);

    /**
     * 删除User
     * @param user
     * @return
     */
    int delete(User user);

    /**
     * 新增User
     * @param user
     */
    void save(User user);


}
